package com.neusoft.license.common.exception;

import lombok.Getter;

/**
 * @Author: xlh
 * @Description: 异常信息基类
 * @Date: Create in 17:01 2020/8/24 0024
 */
@Getter
public class BaseException extends RuntimeException {

    /**
     * 返回异常编码
     */
    private Integer code;

    /**
     * 返回异常信息
     */
    private String msg;

    public BaseException(Integer code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }
}
